
ROOT=..
EXTRALIBS=-pthread
include $(ROOT)/Make.defines.linux

# 注意: kernelList 目录下的文件需要先被编译
DIRS = kernelList utility log user encrypt net
PROGS =

all:subModule $(PROGS)
	echo $@.$$$$

subModule:
	for i in $(DIRS); do \
		(cd $$i && echo "making $$i" && $(MAKE) ) || exit 1; \
	done

%:%.c
	$(CC) $(CFLAGS) -o $@ $@.c

clean:
	for i in $(DIRS); do \
		(cd $$i && echo "cleaning $$i" && $(MAKE) clean) || exit 1; \
	done
